#Boa:Dialog:DlgSystemConfig

import wx
import DlgBackupManager, FrameCompany, FrameStaff, FrameOperator
import DlgAccount

def create(parent):
    return DlgSystemConfig(parent)

[wxID_DLGSYSTEMCONFIG, wxID_DLGSYSTEMCONFIGBTNACCOUNT, 
 wxID_DLGSYSTEMCONFIGBTNBACKUPMANAGER, wxID_DLGSYSTEMCONFIGBTNCOMPANY, 
 wxID_DLGSYSTEMCONFIGBTNSTAFF, wxID_DLGSYSTEMCONFIGBTNTABELSETTING, 
] = [wx.NewId() for _init_ctrls in range(6)]

class DlgSystemConfig(wx.Dialog):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Dialog.__init__(self, id=wxID_DLGSYSTEMCONFIG,
              name=u'DlgSystemConfig', parent=prnt, pos=wx.Point(426, 217),
              size=wx.Size(488, 209), style=wx.DEFAULT_DIALOG_STYLE,
              title=u'\u7cfb\u7edf\u8bbe\u7f6e')
        self.SetClientSize(wx.Size(480, 175))

        self.btnBackupManager = wx.Button(id=wxID_DLGSYSTEMCONFIGBTNBACKUPMANAGER,
              label=u'\u5907\u4efd\u4e0e\u6062\u590d', name=u'btnBackupManager',
              parent=self, pos=wx.Point(208, 104), size=wx.Size(75, 24),
              style=0)
        self.btnBackupManager.Bind(wx.EVT_BUTTON, self.OnBtnBackupManagerButton,
              id=wxID_DLGSYSTEMCONFIGBTNBACKUPMANAGER)

        self.btnCompany = wx.Button(id=wxID_DLGSYSTEMCONFIGBTNCOMPANY,
              label=u'\u516c\u53f8\u4fe1\u606f', name=u'btnCompany',
              parent=self, pos=wx.Point(112, 48), size=wx.Size(75, 24),
              style=0)
        self.btnCompany.Bind(wx.EVT_BUTTON, self.OnBtnCompanyButton,
              id=wxID_DLGSYSTEMCONFIGBTNCOMPANY)

        self.btnStaff = wx.Button(id=wxID_DLGSYSTEMCONFIGBTNSTAFF,
              label=u'\u5458\u5de5\u4fe1\u606f', name=u'btnStaff', parent=self,
              pos=wx.Point(208, 48), size=wx.Size(75, 24), style=0)
        self.btnStaff.Bind(wx.EVT_BUTTON, self.OnBtnStaffButton,
              id=wxID_DLGSYSTEMCONFIGBTNSTAFF)

        self.btnAccount = wx.Button(id=wxID_DLGSYSTEMCONFIGBTNACCOUNT,
              label=u'\u8d44\u91d1\u8d26\u6237', name=u'btnAccount',
              parent=self, pos=wx.Point(304, 48), size=wx.Size(75, 24),
              style=0)
        self.btnAccount.Bind(wx.EVT_BUTTON, self.OnBtnAccountButton,
              id=wxID_DLGSYSTEMCONFIGBTNACCOUNT)

        self.btnTabelSetting = wx.Button(id=wxID_DLGSYSTEMCONFIGBTNTABELSETTING,
              label=u'\u6253\u5370\u62a5\u8868', name=u'btnTabelSetting',
              parent=self, pos=wx.Point(112, 104), size=wx.Size(75, 24),
              style=0)
        self.btnTabelSetting.Bind(wx.EVT_BUTTON, self.OnBtnTabelSettingButton,
              id=wxID_DLGSYSTEMCONFIGBTNTABELSETTING)

    def __init__(self, parent):
        self._init_ctrls(parent)

    def OnBtnBackupManagerButton(self, event):
        dlg = DlgBackupManager.create(self)
        dlg.Show()

    def OnBtnCompanyButton(self, event):
        dlg = FrameCompany.create(self)
        dlg.Show()

    def OnBtnStaffButton(self, event):
        dlg = FrameStaff.create(self)
        dlg.Show()

    def OnBtnOperatorButton(self, event):
        dlg = FrameOperator.create(self)
        dlg.Show()

    def OnBtnAccountButton(self, event):
        dlg = DlgAccount.create(self)
        dlg.Show()


    def OnBtnTabelSettingButton(self, event):
        import DlgTableSale
        
        dlg = DlgTableSale.create(self)
        dlg.Show()

